
package com.chengyu.eyc.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.chengyu.eyc.utils.EycGenId;

import tk.mybatis.mapper.annotation.KeySql;

@Table(name = "EYC_ORDER_STATUS")
public class EycOrderStatus extends BaseModel {

    private static final long serialVersionUID = 1L;

    @Id
    @KeySql(genId = EycGenId.class)
    @Column(name = "ORDER_STATUS_ID")
    private String orderStatusId;

    @Column(name = "ORDER_ID")
    private String orderId;

    /**
     * unpaid待支付/inspection_pending待验车/close已执行/refund_peding待退款
     */
    @Column(name = "STATUS")
    private String status;

    @Column(name = "REMARK")
    private String remark;

    /**
     * @return ORDER_ID
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * @return ORDER_STATUS_ID
     */
    public String getOrderStatusId() {
        return orderStatusId;
    }

    /**
     * @return REMARK
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 获取unpaid待支付/inspection_pending待验车/close已执行/refund_peding待退款
     *
     * @return STATUS - unpaid待支付/inspection_pending待验车/close已执行/refund_peding待退款
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param orderId
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    /**
     * @param orderStatusId
     */
    public void setOrderStatusId(String orderStatusId) {
        this.orderStatusId = orderStatusId == null ? null : orderStatusId.trim();
    }

    /**
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * 设置unpaid待支付/inspection_pending待验车/close已执行/refund_peding待退款
     *
     * @param status unpaid待支付/inspection_pending待验车/close已执行/refund_peding待退款
     */
    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderStatusId=").append(orderStatusId);
        sb.append(", orderId=").append(orderId);
        sb.append(", status=").append(status);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}